package com.jumi.microservice.domain;

import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 商品sku库存
 *
 * @author Administrator
 */
@ApiModel(value = "GoodsStock对象", description = "商品sku库存表")
public class GoodsStockDTO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "商品sku id")
    private Long goodsSkuId;

    @ApiModelProperty(value = "商品sku编码")
    private String goodsSkuCode;

    @ApiModelProperty(value = "商品spu id")
    private Long goodsId;

    @ApiModelProperty(value = "sku 总库存")
    private Integer goodsSkuStorage;

    @ApiModelProperty(value = "预售库存")
    private Integer preStorage;

    @ApiModelProperty(value = "商品sku分仓库存")
    private List<GoodsWarehouseStockDTO> goodsWarehouseStock = new ArrayList<>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsSkuCode() {
        return goodsSkuCode;
    }

    public void setGoodsSkuCode(String goodsSkuCode) {
        this.goodsSkuCode = goodsSkuCode;
    }

    public Integer getGoodsSkuStorage() {
        return goodsSkuStorage;
    }

    public void setGoodsSkuStorage(Integer goodsSkuStorage) {
        this.goodsSkuStorage = goodsSkuStorage;
    }


    public Long getGoodsSkuId() {
        return goodsSkuId;
    }

    public void setGoodsSkuId(Long goodsSkuId) {
        this.goodsSkuId = goodsSkuId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getPreStorage() {
        return preStorage;
    }

    public void setPreStorage(Integer preStorage) {
        this.preStorage = preStorage;
    }

    public List<GoodsWarehouseStockDTO> getGoodsWarehouseStock() {
        return goodsWarehouseStock;
    }

    public void setGoodsWarehouseStock(List<GoodsWarehouseStockDTO> goodsWarehouseStock) {
        this.goodsWarehouseStock = goodsWarehouseStock;
    }
}
